import "../lib/node_modules/jquery/dist/jquery.min.js";
; (function ($) {
    "use strict"
    var _global;
    var BaseConfig = function (opt) {
        return new T(opt);
    }
    class T {
        constructor(opt) {
            this._url = "http://10.10.14.129:9055";
            this.privateKey = `-----BEGIN PRIVATE KEY-----
            MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJixJfefTRfIY+WhdliUEi8qEc/sZKSromtcqoSsegw0n3E9KCvauKaLo4pYQAnAkikCQf4rXO7F3UQKQSdNknG+zlplpBq8UYYbK721SZBCLaxAnZKiYyvhjF2gOho05XtCDXz0dPve0PgyqBPbLuwmxyPW9gqtRUj0R9ILRKWBAgMBAAECgYAS9gKXOJS39JY1JIL/9mk4qqJ6HaqUyUx6xQ/WuF1SiTFYfEXyBi/iXJpDGnjfTSbJSWK9B5D7hJ4YriZPlWIvJPNsUTlqr6EhEZiGL13GWcG0Dw07cW3n1miOXNjkf1wW8OlutTYJoXEYungMpXqJZTZm9xoMRTo8GYhuPNjEjQJBANnRbCk71GRuGOyf97JOE72i23yDURkd11D55yNl2t3kj42E9L74sSUJHnDMaYAT2MEBBNh4CeqJNLdyK9pYJL0CQQCzdTIZN0rI+tz2gOV+va75Cg/6PNuy7IE7FbjK+XcYo3hUup9jRTuCYvz6fpMRxGzcDGegdfRDimQo7/xDR0oVAkBlMzDOo5aVprV70wLxW+c+F1lkq1pVkhDE9abXQm6C47typBBWXhNnwqna/I4TzKTLX17R+EubJW5RwQDw7Dz9AkEAg/GB8SpHEPfpKFBi68mY8T/luW2vdqEO7xsscAf0+aePHHTOJZXMiDQxnhccGK8b/rocIs0218XTmInCJtEudQJAKjG1q4/Y81RBIt+Bdal+eGqBnMI4e3oidAnIn3b8awpy0/fmSgB7JcAAvAF22zRPVBq+BJSskxSgc2dHeZef4Q==
            -----END PRIVATE KEY-----`;
            this.publicKey = `-----BEGIN PUBLIC KEY-----
            MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCYsSX3n00XyGPloXZYlBIvKhHP7GSkq6JrXKqErHoMNJ9xPSgr2rimi6OKWEAJwJIpAkH+K1zuxd1ECkEnTZJxvs5aZaQavFGGGyu9tUmQQi2sQJ2SomMr4YxdoDoaNOV7Qg189HT73tD4MqgT2y7sJscj1vYKrUVI9EfSC0SlgQIDAQAB
            -----END PUBLIC KEY-----`;
            this.privateKey = this.privateKey.replace("-----BEGIN PRIVATE KEY-----", "");
            this.publicKey = this.publicKey.replace("-----END PRIVATE KEY-----", "");
            this.privateKey = this.privateKey.replace(/\n/g, "");
            this.privateKey = this.privateKey.trim();
            this.publicKey = this.publicKey.replace("-----BEGIN PUBLIC KEY-----", "");
            this.publicKey = this.publicKey.replace("-----END PUBLIC KEY-----", "");
            this.publicKey = this.publicKey.replace(/\n/g, "");
            this.publicKey = this.publicKey.trim();
        }
        get url() {
            return this._url;
        }
        set url(data) {
            this._url = data;
        }
    }
    //将插件对象暴露给全局对象
    _global = (function () { return this || (0, eval)('this'); }());
    if (typeof module !== "undefined" && module.exports) {
        module.exports = BaseConfig;
    } else if (typeof define === "function" && define.amd) {
        define(function () { return BaseConfig; });
    } else {
        !('BaseConfig' in _global) && (_global.BaseConfig = BaseConfig);
    }
})(jQuery);
